package com.woniu40.petai_manager.vo;

import io.swagger.models.auth.In;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@ToString
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ManagerVo {
    private Integer managerId;

    private Integer userCode;

    private String userName;

    private String cellphone;

    private String email;

    private String password;

    private Integer locked;

    private Date insertTime;

    private Date updateTime;

    private List<Integer> rolelist;

    @Override
    public String toString() {
        return "ManagerVo{" +
                "managerId=" + managerId +
                ", userCode=" + userCode +
                ", userName='" + userName + '\'' +
                ", cellphone='" + cellphone + '\'' +
                ", email='" + email + '\'' +
                ", password='" + password + '\'' +
                ", locked=" + locked +
                ", insertTime=" + insertTime +
                ", updateTime=" + updateTime +
                ", rolelist=" + rolelist +
                '}';
    }

    public ManagerVo(Integer userCode, String userName, List<Integer> rolelist ){
        this.userCode=userCode;
        this.userName=userName;
        this.rolelist=rolelist;
    }

}
